<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            {foreach $siteList as $key=>$vo}
            <li class="table_tab {if $site_id==$vo.id}active{/if}"><a href="#first{$key+1}" data-id="{$vo.id}" data-toggle="tab">{$vo.site_name}</a></li>
            {/foreach}
<!--            <li class="active"><a href="#first" data-toggle="tab">表格1</a></li>-->
<!--            <li><a href="#second" data-toggle="tab">表格2</a></li>-->
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            {foreach $siteList as $kk=>$vv}
            <div class="tab-pane fade {if $site_id==($kk+1)}active in{/if}" id="first{$kk+1}">
                <div id="toolbar{$kk+1}" class="toolbar">
                    {:build_toolbar('refresh')}
                </div>
                <table id="table{$kk+1}" class="table table-striped table-bordered table-hover" width="100%">
                </table>
            </div>
            {/foreach}
        </div>
    </div>
</div>